/* stylelint-disable */
@charset "UTF-8";

// 设置输入框的提示符样式
@mixin setPlaceholder($color) {
  &::-webkit-input-placeholder {
    color: $color !important;
  }
  &::-moz-placeholder {
    color: $color !important;
  }
  &:-ms-input-placeholder {
    color: $color !important;
  }
}

// iPhone X、iPhone XR、iPhone XS Max、iPhone 11/12/13、iPhone 11/12/13 Pro、iPhone 11/12/13 Pro Max适配
@mixin safeAdapter($name, $n: '0px') {
  @if ($name == "pb") {
    padding-bottom: calc(#{$n} + constant(safe-area-inset-bottom)); /*兼容 IOS<11.2*/
    padding-bottom: calc(#{$n} + env(safe-area-inset-bottom)); /*兼容 IOS>11.2*/
  }
  @else if($name == "h") {
    // 或者改变高度
    height: calc(#{$n} + constant(safe-area-inset-bottom));
    height: calc(#{$n} + env(safe-area-inset-bottom));
  }
  @else if($name == "b") {
    // 或者底部
    bottom: calc(#{$n} + constant(safe-area-inset-bottom));
    bottom: calc(#{$n} + env(safe-area-inset-bottom));
  }
}


